\hypertarget{class_musink_submitter}{
\section{Musink\-Submitter Class Reference}
\label{class_musink_submitter}\index{MusinkSubmitter@{MusinkSubmitter}}
}
{\tt \#include $<$Musink\-Submitter.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_musink_submitter_36ad23e7930fbb0b8cfecdbff8530a33}{Musink\-Submitter} ()
\item 
\hyperlink{class_musink_submitter_061bbf22d98ff43c6cf99c8cf75ed312}{Musink\-Submitter} (string id)
\item 
\hyperlink{class_musink_submitter_45367147520e828c5fcdaf8767de8b99}{$\sim$Musink\-Submitter} ()
\item 
string \hyperlink{class_musink_submitter_dcbbc42ac2ae64f9d8bf0c43d76d6761}{get\-ID} ()
\item 
Musink\-Song \hyperlink{class_musink_submitter_6b46d3711627477ce418e9788372e1b2}{get\-Song} (const string \&filename)
\item 
Musink\-Song \hyperlink{class_musink_submitter_c7621258b1feee444f7145c43f7b8b34}{get\-Song\-By\-Hash} (const string \&hash)
\item 
void \hyperlink{class_musink_submitter_65ceca604c9dc52d2618dae666249380}{update\-Song} (const Musink\-Song \&song)
\item 
void \hyperlink{class_musink_submitter_a4ee3e2a54febbaa0490de49c6102417}{sync\-Databases} (vector$<$ Musink\-Song $>$ \&library, vector$<$ Musink\-Song $>$ \&conflicts)
\item 
vector$<$ Musink\-Song $>$ \hyperlink{class_musink_submitter_52d30a35c43a3de95d04f40aac59af99}{song\-Collection} (const vector$<$ string $>$ \&files)
\end{CompactItemize}


\subsection{Detailed Description}
Class for working with the Musink Database Manager 



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_musink_submitter_36ad23e7930fbb0b8cfecdbff8530a33}{
\index{MusinkSubmitter@{Musink\-Submitter}!MusinkSubmitter@{MusinkSubmitter}}
\index{MusinkSubmitter@{MusinkSubmitter}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[MusinkSubmitter]{\setlength{\rightskip}{0pt plus 5cm}Musink\-Submitter::Musink\-Submitter ()}}
\label{class_musink_submitter_36ad23e7930fbb0b8cfecdbff8530a33}


Constructor \hypertarget{class_musink_submitter_061bbf22d98ff43c6cf99c8cf75ed312}{
\index{MusinkSubmitter@{Musink\-Submitter}!MusinkSubmitter@{MusinkSubmitter}}
\index{MusinkSubmitter@{MusinkSubmitter}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[MusinkSubmitter]{\setlength{\rightskip}{0pt plus 5cm}Musink\-Submitter::Musink\-Submitter (string {\em id})}}
\label{class_musink_submitter_061bbf22d98ff43c6cf99c8cf75ed312}


Constructor

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em id}]Plugin ID existing from a previous session \end{description}
\end{Desc}
\hypertarget{class_musink_submitter_45367147520e828c5fcdaf8767de8b99}{
\index{MusinkSubmitter@{Musink\-Submitter}!~MusinkSubmitter@{$\sim$MusinkSubmitter}}
\index{~MusinkSubmitter@{$\sim$MusinkSubmitter}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[$\sim$MusinkSubmitter]{\setlength{\rightskip}{0pt plus 5cm}Musink\-Submitter::$\sim$Musink\-Submitter ()}}
\label{class_musink_submitter_45367147520e828c5fcdaf8767de8b99}


Destructor 

\subsection{Member Function Documentation}
\hypertarget{class_musink_submitter_dcbbc42ac2ae64f9d8bf0c43d76d6761}{
\index{MusinkSubmitter@{Musink\-Submitter}!getID@{getID}}
\index{getID@{getID}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[getID]{\setlength{\rightskip}{0pt plus 5cm}string Musink\-Submitter::get\-ID ()}}
\label{class_musink_submitter_dcbbc42ac2ae64f9d8bf0c43d76d6761}


Get plugin\-ID

returns plugin\-ID as assigned by Database Manager (first time) \hypertarget{class_musink_submitter_6b46d3711627477ce418e9788372e1b2}{
\index{MusinkSubmitter@{Musink\-Submitter}!getSong@{getSong}}
\index{getSong@{getSong}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[getSong]{\setlength{\rightskip}{0pt plus 5cm}Musink\-Song Musink\-Submitter::get\-Song (const string \& {\em filename})}}
\label{class_musink_submitter_6b46d3711627477ce418e9788372e1b2}


Gets all data about a song from the Database\-Manager (Should be used to get every song to be updated)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em filename}]Contains the file name of the song of interest\end{description}
\end{Desc}
returns Musink\-Song object containing the data the Manager has on the file selected \hypertarget{class_musink_submitter_c7621258b1feee444f7145c43f7b8b34}{
\index{MusinkSubmitter@{Musink\-Submitter}!getSongByHash@{getSongByHash}}
\index{getSongByHash@{getSongByHash}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[getSongByHash]{\setlength{\rightskip}{0pt plus 5cm}Musink\-Song Musink\-Submitter::get\-Song\-By\-Hash (const string \& {\em hash})}}
\label{class_musink_submitter_c7621258b1feee444f7145c43f7b8b34}


Gets all data about a song from the Database\-Manager based on Hash

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em hash}]returns Musink\-Song object containing the data the Manager has on the hash provided \end{description}
\end{Desc}
\hypertarget{class_musink_submitter_65ceca604c9dc52d2618dae666249380}{
\index{MusinkSubmitter@{Musink\-Submitter}!updateSong@{updateSong}}
\index{updateSong@{updateSong}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[updateSong]{\setlength{\rightskip}{0pt plus 5cm}void Musink\-Submitter::update\-Song (const Musink\-Song \& {\em song})}}
\label{class_musink_submitter_65ceca604c9dc52d2618dae666249380}


Sends all local data about a song to the Database\-Manager to be updated (including Meta Tags as seen by the Player)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em song}]Song to be updated \end{description}
\end{Desc}
\hypertarget{class_musink_submitter_a4ee3e2a54febbaa0490de49c6102417}{
\index{MusinkSubmitter@{Musink\-Submitter}!syncDatabases@{syncDatabases}}
\index{syncDatabases@{syncDatabases}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[syncDatabases]{\setlength{\rightskip}{0pt plus 5cm}void Musink\-Submitter::sync\-Databases (vector$<$ Musink\-Song $>$ \& {\em library}, vector$<$ Musink\-Song $>$ \& {\em conflicts})}}
\label{class_musink_submitter_a4ee3e2a54febbaa0490de49c6102417}


Sync up local library (player or portable) with the Database\-Manager This should be run at the start of a 'new' player or when a portable is synced

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em library}]Contains all songs that need to be updated \item[\mbox{$\rightarrow$} {\em conflicts}]Contains a list of songs that have conflicting data (i.e. Different Ratings) that need to be resolved. Resolve via update\-Song \end{description}
\end{Desc}
\hypertarget{class_musink_submitter_52d30a35c43a3de95d04f40aac59af99}{
\index{MusinkSubmitter@{Musink\-Submitter}!songCollection@{songCollection}}
\index{songCollection@{songCollection}!MusinkSubmitter@{Musink\-Submitter}}
\subsubsection[songCollection]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ Musink\-Song $>$ Musink\-Submitter::song\-Collection (const vector$<$ string $>$ \& {\em files})}}
\label{class_musink_submitter_52d30a35c43a3de95d04f40aac59af99}


Gets song data for multiple files from the Database Manager. This should be run to get a consistant library (i.e. has correct hashes) for use with \hyperlink{class_musink_submitter_a4ee3e2a54febbaa0490de49c6102417}{Musink\-Submitter::sync\-Databases} After running this function, update all properties of a Musink\-Song except file\-Name, and hash

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em files}]Contains full paths to all files that song data is needed for \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
C:/dev/musink/Musink\-Submitter/Musink\-Submitter.h\item 
C:/dev/musink/Musink\-Submitter/Musink\-Submitter.cpp\end{CompactItemize}
